/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	GlbCloud			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_01_18			*/
/*	File:		MrMsg.h				*/
/********************************************************/

#ifndef _MRMSG_H
#define	_MRMSG_H

#include "MrIpc.h"
#include <sys/msg.h>

typedef struct tagMrMsg
{
	ULONG m_ulID;
	char m_szMsg[MR_PACKET];
}MRMSG_S;

class CMrMsg : public CMrIpc
{
public:
	CMrMsg();
	virtual ~CMrMsg();

	int MrMsgGet(void* pMsg, UINT uiSize);
	int MrMsgPut(void* pMsg, UINT uiSize);

	virtual void MrIpcDelete();
	virtual int MrIpcCreate(key_t iKey);
	virtual void MrIpcSetKernel(ULONG ulMax, ULONG ulMnb, ULONG ulMni);

protected:

private:
	int m_iMsg;

};

#endif /* _MRMSG_H */
